<?php 
defined('o') || exit('404 not find file'); //防跳墙

class assess extends model{
	public function addassess($editlog_id,$type_id,$user_id,$assess_val){
		$this->adddata(array(
				'message_id' => $editlog_id,
				'type_id' => $type_id,
				'user_id' => $user_id,
				'assess_val' => $assess_val,
				'assess_time'=> time()
			));
		if ($assess_val == 'bay') {
			$edit = 'editlog_error';
		}else{
			$edit = 'editlog_good';
		}
		$this->query("update xxx_editlog set ".$edit."=".$edit.'+1 where editlog_id='.$editlog_id,array(''),$count);
	}
}


?>